<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>String - ujs</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title="ujs"></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: 0.0.1</em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/AutoCompleteBox.html">AutoCompleteBox</a></li>
            
                <li><a href="../classes/Function.html">Function</a></li>
            
                <li><a href="../classes/Grouper.html">Grouper</a></li>
            
                <li><a href="../classes/ImagePreviewDialog.html">ImagePreviewDialog</a></li>
            
                <li><a href="../classes/String.html">String</a></li>
            
                <li><a href="../classes/StringList.html">StringList</a></li>
            
                <li><a href="../classes/TabControl.html">TabControl</a></li>
            
                <li><a href="../classes/WebNotification
浏览器通知管理类..html">WebNotification
浏览器通知管理类.</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/JavaScript core extension.html">JavaScript core extension</a></li>
            
                <li><a href="../modules/jquery base plugins.html">jquery base plugins</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1>String Class</h1>
<div class="box meta">
    

    

    
        <div class="foundat">
            Defined in: <a href="../files/.._js_compatibility.js.html#l1"><code>..\js\compatibility.js:1</code></a>
        </div>
    

    
        
            Module: <a href="../modules/JavaScript core extension.html">JavaScript core extension</a>
        
    

    
</div>



<div class="box intro">
    <p>JavaScript原生String对象扩展。</p>

</div>



<div id="classdocs" class="tabview">
    <ul class="api-class-tabs">
        <li class="api-class-tab index"><a href="#index">Index</a></li>

        
            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
        
        
            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
        
        
        
    </ul>

    <div>
        <div id="index" class="api-class-tabpanel index">
            <h2 class="off-left">Item Index</h2>

            
                <div class="index-section methods">
                    <h3>Methods</h3>

                    <ul class="index-list methods">
                        
                            <li class="index-item method">
                                <a href="#method_remove">remove</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_"></a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toDiskSize.">toDiskSize.</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toInt">toInt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isFloat">isFloat</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isInteger">isInteger</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toSignedNumberString">toSignedNumberString</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_paddingLeft">paddingLeft</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_constraintRegion">constraintRegion</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_inRegion">inRegion</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toFixed">toFixed</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getMonthName">getMonthName</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getWeekName">getWeekName</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_format">format</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_add">add</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_DateDiff">DateDiff</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getAge">getAge</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getTimeTooltip">getTimeTooltip</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getISODay">getISODay</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isLeapYear">isLeapYear</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getDaysInMonth">getDaysInMonth</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getDaySuffix">getDaySuffix</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_from">from</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getAge">getAge</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_tick">tick</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_now">now</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_nowDateObj">nowDateObj</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_DateDiff">DateDiff</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_parseStrDate">parseStrDate</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_contains">contains</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_containsAtLeastOne">containsAtLeastOne</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_swapTwoItems">swapTwoItems</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_add">add</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_addAt">addAt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_move">move</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getItemRandomly">getItemRandomly</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_highlight">highlight</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_removeAt">removeAt</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_sortAsc">sortAsc</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_sortDesc">sortDesc</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_unique">unique</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_intersect">intersect</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_first">first</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_last">last</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_middle">middle</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_clone">clone</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_shrink">shrink</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_linear">linear</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_some">some</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_every">every</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_filter">filter</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_forEach">forEach</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_indexOf">indexOf</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_lastIndexOf">lastIndexOf</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_map">map</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_shuffle">shuffle</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_clear">clear</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getMaxItem">getMaxItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_getMinItem">getMinItem</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_pad">pad</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_subtract.">subtract.</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_diff">diff</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_disjoint">disjoint</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toString">toString</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_merge">merge</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_isArray">isArray</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_toArray">toArray</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_intersect">intersect</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_forEach">forEach</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_linear">linear</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_extend">extend</a>

                                
                                
                            </li>
                        
                            <li class="index-item method">
                                <a href="#method_detectInstance">detectInstance</a>

                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            
                <div class="index-section properties">
                    <h3>Properties</h3>

                    <ul class="index-list properties">
                        
                            <li class="index-item property">
                                <a href="#property_originalStartDate">originalStartDate</a>

                                
                                    <span class="flag static">static</span>
                                
                                
                            </li>
                        
                    </ul>
                </div>
            

            

            
        </div>

        
            <div id="methods" class="api-class-tabpanel">
                <h2 class="off-left">Methods</h2>

                
                    <div id="method_remove" class="method item">
    <h3 class="name"><code>remove</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1510"><code>..\js\compatibility.js:1510</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>删除参数中指定的元素，参数格式如: ( obj1, obj2, obj3, ... )</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_" class="method item">
    <h3 class="name"><code></code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>url</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                    <p>Provided by the <a href="../modules/jquery base plugins.html">jquery base plugins</a> module.</p>
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_webExt_browser_location.js.html#l39"><code>..\js\webExt\browser\location.js:39</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        
    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">url</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>The url to parse</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    

    
</div>

                
                    <div id="method_toDiskSize." class="method item">
    <h3 class="name"><code>toDiskSize.</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>unit</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>precision</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>isShowUnit</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l660"><code>..\js\compatibility.js:660</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>转换信息的数量单位.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">unit</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>: K/M/G/T，默认为 M.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">precision</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>: 结果精度，默认为 2.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">isShowUnit</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                        <p>: 是否显示单位(KB/MB/GB/TB),默认显示.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toInt" class="method item">
    <h3 class="name"><code>toInt</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l687"><code>..\js\compatibility.js:687</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>取整.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isFloat" class="method item">
    <h3 class="name"><code>isFloat</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l703"><code>..\js\compatibility.js:703</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return true if number is a float</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isInteger" class="method item">
    <h3 class="name"><code>isInteger</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l712"><code>..\js\compatibility.js:712</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return true if number is an integer</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toSignedNumberString" class="method item">
    <h3 class="name"><code>toSignedNumberString</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>zeroPrefix</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l755"><code>..\js\compatibility.js:755</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将 10 转换成 &#39;+10&#39;,
将 -10 转换成 &#39;-10&#39;.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">zeroPrefix</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>: 0之前的字符，一般用 +号，默认为空字符串。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_paddingLeft" class="method item">
    <h3 class="name"><code>paddingLeft</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>paddingStr</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l772"><code>..\js\compatibility.js:772</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>左填充。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">paddingStr</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a> | <a href="..\classes\Function.html" class="crosslink">Function</a></span>
                    

                    

                    <div class="param-description">
                        <p>填充值，默认为0.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_constraintRegion" class="method item">
    <h3 class="name"><code>constraintRegion</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>min</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>max</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l792"><code>..\js\compatibility.js:792</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>约束数值在指定的范围[min, max]。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">min</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最小值.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">max</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最大值.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                    <p>.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_inRegion" class="method item">
    <h3 class="name"><code>inRegion</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>min</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>max</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>isClosed</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l810"><code>..\js\compatibility.js:810</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数值是否在指定的范围内[min, max]。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">min</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最小值.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">max</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>最大值.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">isClosed</code>
                        <span class="type">Boolean</span>
                    

                    

                    <div class="param-description">
                        <p>是否是闭区间，默认false.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                    <p>.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toFixed" class="method item">
    <h3 class="name"><code>toFixed</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>num</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>isRemoveEndZero</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l822"><code>..\js\compatibility.js:822</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>重写 toFixed 方法.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">num</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>指定保留几位小数.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">isRemoveEndZero</code>
                        <span class="type">Boolean</span>
                    

                    

                    <div class="param-description">
                        <p>是否去掉末尾的0.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getMonthName" class="method item">
    <h3 class="name"><code>getMonthName</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l861"><code>..\js\compatibility.js:861</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取  Month Name.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getWeekName" class="method item">
    <h3 class="name"><code>getWeekName</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l875"><code>..\js\compatibility.js:875</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取 Week Name.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_format" class="method item">
    <h3 class="name"><code>format</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l888"><code>..\js\compatibility.js:888</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>日期格式化.如:
alert(new Date().format(&quot;yyyy-MM-dd&quot;));
alert(new Date(&quot;january 12 2008 11:12:30&quot;).format(&quot;yyyy-MM-dd hh:mm:ss&quot;));</p>

    </div>

    

    

    
</div>

                
                    <div id="method_add" class="method item">
    <h3 class="name"><code>add</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l941"><code>..\js\compatibility.js:941</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>时间增量.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_DateDiff" class="method item">
    <h3 class="name"><code>DateDiff</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l982"><code>..\js\compatibility.js:982</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间与指定时间的差距.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getAge" class="method item">
    <h3 class="name"><code>getAge</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l990"><code>..\js\compatibility.js:990</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>若当前时间对象为生日，获取其相关的年龄。</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getTimeTooltip" class="method item">
    <h3 class="name"><code>getTimeTooltip</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l998"><code>..\js\compatibility.js:998</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间的时间段易读提示.
1、&lt; 60s, 显示为     “刚刚”
2、&gt;= 1min &amp;&amp; &lt; 60 min, 显示与当前时间差      “XX分钟前”
3、&gt;= 60min &amp;&amp; &lt; 1day, 显示与当前时间差       “今天 XX:XX”
4、&gt;= 1day &amp;&amp; &lt; 1year, 显示日期       “XX月XX日 XX:XX”
5、&gt;= 1year, 显示具体日期       “XXXX年XX月XX日 XX:XX”</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getISODay" class="method item">
    <h3 class="name"><code>getISODay</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1039"><code>..\js\compatibility.js:1039</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return the ISO day number for a date</p>

    </div>

    

    

    
</div>

                
                    <div id="method_isLeapYear" class="method item">
    <h3 class="name"><code>isLeapYear</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1050"><code>..\js\compatibility.js:1050</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Retuns true if year is a leap year; otherwise false</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getDaysInMonth" class="method item">
    <h3 class="name"><code>getDaysInMonth</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1059"><code>..\js\compatibility.js:1059</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Return the number of days in the month</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getDaySuffix" class="method item">
    <h3 class="name"><code>getDaySuffix</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1072"><code>..\js\compatibility.js:1072</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Gen the english suffix for dates</p>

    </div>

    

    

    
</div>

                
                    <div id="method_from" class="method item">
    <h3 class="name"><code>from</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1105"><code>..\js\compatibility.js:1105</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>构建Date对象.
[Number milliseconds,]
[String dateString,]
[Object yr_num, mo_num, day_num,], [Object hr_num, min_num, sec_num, ms_num]</p>

    </div>

    

    

    
</div>

                
                    <div id="method_getAge" class="method item">
    <h3 class="name"><code>getAge</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1130"><code>..\js\compatibility.js:1130</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取birthDate关联的年龄.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_tick" class="method item">
    <h3 class="name"><code>tick</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1151"><code>..\js\compatibility.js:1151</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间刻度.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_now" class="method item">
    <h3 class="name"><code>now</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1163"><code>..\js\compatibility.js:1163</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间刻度.
Date.now() == (new Date()).getTime()</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_nowDateObj" class="method item">
    <h3 class="name"><code>nowDateObj</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Date</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1175"><code>..\js\compatibility.js:1175</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前时间对象.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Date</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_DateDiff" class="method item">
    <h3 class="name"><code>DateDiff</code></h3>

    
        <span class="paren">()</span>
    

    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1187"><code>..\js\compatibility.js:1187</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取两个时间差.</p>

    </div>

    

    

    
</div>

                
                    <div id="method_parseStrDate" class="method item">
    <h3 class="name"><code>parseStrDate</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Date</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1231"><code>..\js\compatibility.js:1231</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>解析字符串格式的时间，如：13-Nov-2013。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Date</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_contains" class="method item">
    <h3 class="name"><code>contains</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1364"><code>..\js\compatibility.js:1364</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>是否包含某元素，或一系列元素。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                    <p>Copy of ...</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_containsAtLeastOne" class="method item">
    <h3 class="name"><code>containsAtLeastOne</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1391"><code>..\js\compatibility.js:1391</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数组中是否至少包含一个指定的元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_swapTwoItems" class="method item">
    <h3 class="name"><code>swapTwoItems</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1405"><code>..\js\compatibility.js:1405</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>交换数组中两个元素的位置.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_add" class="method item">
    <h3 class="name"><code>add</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>obj</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1423"><code>..\js\compatibility.js:1423</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>添加一个元素， 若已存在，则不添加。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">obj</code>
                        <span class="type">Object | Array</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>Array</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_addAt" class="method item">
    <h3 class="name"><code>addAt</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>index</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>obj1,</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1452"><code>..\js\compatibility.js:1452</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>在数组中的指定位置添加元素.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">index</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>要插入的位置.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">obj1,</code>
                        <span class="type">Mixed</span>
                    

                    

                    <div class="param-description">
                        <p>obj2, ..., objn  要添加的数据项.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>修改后的原数组.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_move" class="method item">
    <h3 class="name"><code>move</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1470"><code>..\js\compatibility.js:1470</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>移动数组中的元素到指定的位置.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getItemRandomly" class="method item">
    <h3 class="name"><code>getItemRandomly</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1499"><code>..\js\compatibility.js:1499</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>随机获取数组中的一个元素.
Math.random() -&gt; 取[0,1)随机数.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_highlight" class="method item">
    <h3 class="name"><code>highlight</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>keys</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l340"><code>..\js\compatibility.js:340</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>网页中高亮显示字符串中的关键词.
关键词以 #em# 开始，以 $em$ 结束。
如将：Json path &quot;#em#code$em$&quot; is operation  Ids Response: Json path &quot;#em#code$em$
转化成：Json path &quot;<b style="color:#fc4444">code</b>&quot; is operation  Ids Response: Json path &quot;<b style="color:#fc4444">code</b></p>
<p>使用场景：在使用 lucene 做搜索时，若需要支持使用 lucene 语法模糊查询，则纯前端难以完成关键词高亮显示功能，需要由server端完成高亮关键词指定，由前端显示。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">keys</code>
                        <span class="type">Array</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_removeAt" class="method item">
    <h3 class="name"><code>removeAt</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1532"><code>..\js\compatibility.js:1532</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>删除指定位置的元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>: 被删除的元素.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_sortAsc" class="method item">
    <h3 class="name"><code>sortAsc</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1566"><code>..\js\compatibility.js:1566</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>升序排列数组(适用Number与String类型的数组).</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_sortDesc" class="method item">
    <h3 class="name"><code>sortDesc</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1576"><code>..\js\compatibility.js:1576</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>降序排列数组(适用Number与String类型的数组).</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_unique" class="method item">
    <h3 class="name"><code>unique</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1586"><code>..\js\compatibility.js:1586</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>去除重复元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_intersect" class="method item">
    <h3 class="name"><code>intersect</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1602"><code>..\js\compatibility.js:1602</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>取两个Array的交集.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_first" class="method item">
    <h3 class="name"><code>first</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1621"><code>..\js\compatibility.js:1621</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组第一个元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_last" class="method item">
    <h3 class="name"><code>last</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1630"><code>..\js\compatibility.js:1630</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组的最后一个.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_middle" class="method item">
    <h3 class="name"><code>middle</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1639"><code>..\js\compatibility.js:1639</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组中间的一个.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_clone" class="method item">
    <h3 class="name"><code>clone</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1650"><code>..\js\compatibility.js:1650</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>克隆数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_shrink" class="method item">
    <h3 class="name"><code>shrink</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1663"><code>..\js\compatibility.js:1663</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>去除数组中的冗余空元素.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_linear" class="method item">
    <h3 class="name"><code>linear</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1678"><code>..\js\compatibility.js:1678</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将二维数组转化成一维数组.
如: [[1,2,3],[4,5,6,[7,8]]].linear()   =&gt;   [1,2,3,4,5,6,[7,8]]</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_some" class="method item">
    <h3 class="name"><code>some</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1687"><code>..\js\compatibility.js:1687</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数组中是否至少有一个元素满足条件.
fn* ( Object, Number, Array ) : Boolean  --- callback, 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
        <div class="example">
            <h4>Example:</h4>

            <div class="example-content">
                <pre class="code prettyprint"><code> function isBigEnough(element, index, array) {
     return (element &gt;= 10);
 }
 var passed = [2, 5, 8, 1, 4].some(isBigEnough);
 // passed is false
 var passed = [12, 5, 8, 1, 44].some(isBigEnough);
 // passed is true</code></pre>

            </div>
        </div>
    
</div>

                
                    <div id="method_every" class="method item">
    <h3 class="name"><code>every</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1712"><code>..\js\compatibility.js:1712</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断数组中是否所有元素均满足条件.
fn* ( Object, Number, Array ) : Boolean  --- callback, 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_filter" class="method item">
    <h3 class="name"><code>filter</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1728"><code>..\js\compatibility.js:1728</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Creates a new array with all elements that meet the specified criteria.
fn* ( Object, Number, Array ) : Boolean  --- callback, 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_forEach" class="method item">
    <h3 class="name"><code>forEach</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1758"><code>..\js\compatibility.js:1758</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Executes the specified function once for each element in an array.
fn* ( Object, Number, Array ), 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_indexOf" class="method item">
    <h3 class="name"><code>indexOf</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1796"><code>..\js\compatibility.js:1796</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Returns the first index number at which the specified element can be found in the array. 
Returns -1 if the element is not present.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_lastIndexOf" class="method item">
    <h3 class="name"><code>lastIndexOf</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Number</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1812"><code>..\js\compatibility.js:1812</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Searches an array backwards starting from fromIndex and returns the last index number at which the specified element can be found in the array. 
Returns -1 if the element is not present.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Number</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_map" class="method item">
    <h3 class="name"><code>map</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1828"><code>..\js\compatibility.js:1828</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Creates a new array with the results of calling a provided function on every element in this array.
fn* ( Object, Number, Array ), 
[ctx]  --- Object</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_shuffle" class="method item">
    <h3 class="name"><code>shuffle</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1842"><code>..\js\compatibility.js:1842</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将数组内的元素次序打乱(洗牌).</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_clear" class="method item">
    <h3 class="name"><code>clear</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1851"><code>..\js\compatibility.js:1851</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>清空数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getMaxItem" class="method item">
    <h3 class="name"><code>getMaxItem</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1862"><code>..\js\compatibility.js:1862</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组中最大的数组项.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_getMinItem" class="method item">
    <h3 class="name"><code>getMinItem</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">ArrayItem</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1870"><code>..\js\compatibility.js:1870</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取数组中最小的数组项.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">ArrayItem</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_pad" class="method item">
    <h3 class="name"><code>pad</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>size</code>
                    
                </li>
            
                <li class="arg">
                    
                        <code>val</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1878"><code>..\js\compatibility.js:1878</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Pad an array to a given size with a given value.<br/>
This function will return a copy of the array padded to length size with initial value.<br/></p>
<p>If size is less than or equal to the length of the array a copy of the array is returned. <br/>
If size is negative the array is padded from the left. <br/>
If positive it is padded from the right.<br/></p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">size</code>
                        <span class="type">Number</span>
                    

                    

                    <div class="param-description">
                        <p>数组容量.</p>

                    </div>

                    
                </li>
            
                <li class="param">
                    
                        <code class="param-name">val</code>
                        <span class="type">Mixed</span>
                    

                    

                    <div class="param-description">
                        <p>数组填充值.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>新数组实例.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_subtract." class="method item">
    <h3 class="name"><code>subtract.</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1902"><code>..\js\compatibility.js:1902</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>获取当前数组针对指定数组的差集.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_diff" class="method item">
    <h3 class="name"><code>diff</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>arr0</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1916"><code>..\js\compatibility.js:1916</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>The difference is computed as the elements which are in the calling array but not in the arrays passed as arguments.<br/> 
Duplicates are removed from the result.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">arr0</code>
                        <span class="type">Array</span>
                    

                    

                    <div class="param-description">
                        <ul>
<li>arrN  ([ Array a0 ... an ])</li>
</ul>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                    <p>A new array with those elements which are not in arrays a0 trough an.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_disjoint" class="method item">
    <h3 class="name"><code>disjoint</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>UNKNOWN</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1946"><code>..\js\compatibility.js:1946</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>Check whether two arrays are disjoint<br/></p>
<p>This functions checks whether two arrays are disjoint.<br/> 
If no element is in more than one array then the arrays are considered to be disjoint.<br/></p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">UNKNOWN</code>
                        <span class="type">Array</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toString" class="method item">
    <h3 class="name"><code>toString</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>sep</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1965"><code>..\js\compatibility.js:1965</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>重写toString方法，去掉‘逗号’字符串连接符。
默认toString方法将数组中的所有项转化成字符串，而后以‘逗号’分隔连接。
大多数时，我们不需要这个‘逗号’连接符。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">sep</code>
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>
                    

                    

                    <div class="param-description">
                        <p>字符串连接符，默认空字符串。</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\String.html" class="crosslink">String</a></span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_merge" class="method item">
    <h3 class="name"><code>merge</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1979"><code>..\js\compatibility.js:1979</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>合并多个数组为一个数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_isArray" class="method item">
    <h3 class="name"><code>isArray</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1994"><code>..\js\compatibility.js:1994</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>判断指定的参数是否是一个数组.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_toArray" class="method item">
    <h3 class="name"><code>toArray</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>list</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l2003"><code>..\js\compatibility.js:2003</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将类数组对象转化为数组.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">list</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_intersect" class="method item">
    <h3 class="name"><code>intersect</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l2013"><code>..\js\compatibility.js:2013</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>取多个Array的交集.</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_forEach" class="method item">
    <h3 class="name"><code>forEach</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l2029"><code>..\js\compatibility.js:2029</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>array-like enumeration
mozilla already supports this</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_linear" class="method item">
    <h3 class="name"><code>linear</code></h3>

    
        <span class="paren">()</span>
    

    
        <span class="returns-inline">
            <span class="type">Array</span>
        </span>
    

    

    

    

    
        <span class="flag static">static</span>
    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l2042"><code>..\js\compatibility.js:2042</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>将所有参数转化成一个一维数组。</p>

    </div>

    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Array</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_extend" class="method item">
    <h3 class="name"><code>extend</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>superFunction</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l2098"><code>..\js\compatibility.js:2098</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>继承.</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">superFunction</code>
                        <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>
                    

                    

                    <div class="param-description">
                        <p>父类.</p>

                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type"><a href="..\classes\Function.html" class="crosslink">Function</a></span>:
                    
                    <p>子类.</p>

                
            </div>
        </div>
    

    
</div>

                
                    <div id="method_detectInstance" class="method item">
    <h3 class="name"><code>detectInstance</code></h3>

    
        <div class="args">
            <span class="paren">(</span><ul class="args-list inline commas">
            
                <li class="arg">
                    
                        <code>obj</code>
                    
                </li>
            
            </ul><span class="paren">)</span>
        </div>
    

    
        <span class="returns-inline">
            <span class="type">Boolean</span>
        </span>
    

    

    

    

    

    

    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l2122"><code>..\js\compatibility.js:2122</code></a>
        
        </p>


        

        
    </div>

    <div class="description">
        <p>检测指定的对象是否是当前构造函数的实例。</p>

    </div>

    
        <div class="params">
            <h4>Parameters:</h4>

            <ul class="params-list">
            
                <li class="param">
                    
                        <code class="param-name">obj</code>
                        <span class="type">Object</span>
                    

                    

                    <div class="param-description">
                         
                    </div>

                    
                </li>
            
            </ul>
        </div>
    

    
        <div class="returns">
            <h4>Returns:</h4>

            <div class="returns-description">
                
                    
                        <span class="type">Boolean</span>:
                    
                
            </div>
        </div>
    

    
</div>

                
            </div>
        

        
            <div id="properties" class="api-class-tabpanel">
                <h2 class="off-left">Properties</h2>

                
                    <div id="property_originalStartDate" class="property item">
    <h3 class="name"><code>originalStartDate</code></h3>
    <span class="type">Date</span>

    

    

    

    
        <span class="flag static">static</span>
    

    <div class="meta">
        
            
                
                <p>
                
                Defined in
                
            
        
        
        <a href="../files/.._js_compatibility.js.html#l1094"><code>..\js\compatibility.js:1094</code></a>
        
        </p>

        

        
    </div>

    <div class="description">
        <p>时间计时的初始时间.
Thu Jan 01 1970 08:00:00 GMT+0800 (China Standard Time)</p>

    </div>

    
        <p><strong>Default:</strong> &quot;new Date(0)&quot;</p>
    

    

    
</div>

                
            </div>
        

        

        
    </div>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
